all: booklet-ru.html

clean:
	rm booklet-ru.html
	rm booklet-ru.body
	rm booklet.sum
	rm booklet.sumf

booklet-ru.html: booklet.head booklet-ru.body booklet.sumf booklet.tail
	cat $? >$@

booklet-ru.body: booklet-ru.txt
	markdown $< >$@

booklet.sumf: booklet.sum
	echo -n '<pre><code>' >$@
	cat $< >>$@
	echo '</code></pre>' >>$@

booklet.sum: ../src/lang.js ./lang-doc.js
	./lang-doc.js >$@
